package com.qianbei.view.adapter;

import android.content.Context;

import com.qianbei.bean.SearchBean;
import com.qianbei.common.adapter.CommonAdapter;
import com.qianbei.common.adapter.ViewHolder;

/**
 * <pre>
 *     author : pwj
 *     e-mail : xxx@xx
 *     time   : 2019/03/20
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class SearchAdapter extends CommonAdapter<SearchBean> {
    public SearchAdapter(Context context) {
        super(context, android.R.layout.simple_list_item_1);
    }

    @Override
    public void convert(ViewHolder helper, SearchBean item, int position) {
        helper.setText(android.R.id.text1, item.name);
    }
}
